import { UploadOutlined } from "@ant-design/icons";
import type { UploadProps } from "antd";
import { Upload as AntUpload } from "antd";
import { Button } from "../Button";

export const Upload = ({
  children = <Button type="primary" ghost>导入</Button>,
  ...restProps
}: UploadProps) => {
  return <AntUpload {...restProps}>{children}</AntUpload>;
};
